<?php

/*
    picopress - A lightweighed online publishing system
    Copyright (C) 2010  Martin Burkert <martin@burkert.de>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
*/

class Page {

    public $content;
    public $title;
    public $node_title;    
    public $config;
    

    public function set_config (&$config){
        $this->config = $config;
    }

    public function get_content () {
        return $this->content;
    }
    
    public function set_content ($content) {
        $this->content = $content;
    }

    public function set_title ($title) {
        $this->title = $title;
    }
    
    public function set_node_title ($node_title) {
        $this->node_title = $node_title;
    }

    public function get_title () {
        return $this->title;
    }

    public function get_node_title () {
        return $this->node_title;
    }
    
    public function parse_content ($parsers) {
    
        $content = $this->get_content();
    
        foreach ($parsers as $parser) {        
            $content = $parser->parse($content);        
        }
        
        return $content;        
    
    }
    
}


?>